/* 其他原有样式保持不变 */
body {
    margin: 0;
    padding: 20px;
    font-family: Arial, sans-serif;
    transition: background-color 1s ease;
}

#video-container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto 20px;
    border-radius: 10px;
    /* 添加圆角 */
    overflow: hidden;
    /* 确保视频内容也遵循圆角 */
}

#main-video {
    width: 100%;
    height: 350px;
    background: #000;
    border-radius: 10px;
    /* 添加圆角 */
}


/*模拟打字*/
.textt {
    text-align: center;
    padding: 0px;
    height: 38px;

}

.dynamic-text {
    color: #007bff;
}

.dynamic-text::after {
    content: '\00a0|';
    margin-left: 2px;
    animation: print 1s infinite;
}

@keyframes print {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.source-btn img {
    width: 60%;
    height: auto;
    max-height: 60px;
    object-fit: contain;
}

/*作者有话说*/
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(74px);
    touch-action: none;
}

.modal-content {
    background-color: var(--card-color);
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 1rem;
    width: 100%;
    max-width: min(1800px, 95vw);
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    height: auto;
}

.update-content {
    padding-right: 0;
    margin-right: 0;
    overflow: visible;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

@media (max-width: 768px) {
    .modal-content {
        margin: 1rem auto;
        padding: 1.5rem;
        border-radius: 0.75rem;
    }
}

/* 适配安全区域时增加底部间距 */
@supports (padding: max(0px)) {
    .modal-content {
        padding-bottom: max(2rem, env(safe-area-inset-bottom));
    }
}

/**/
.update-date {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.update-item {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

/* 奇数项（第1、3、5...条）用深色 */
.update-item:nth-child(odd) {
    /*color: #333;  深灰色 */
}

/* 偶数项（第2、4、6...条）用浅色 */
.update-item:nth-child(even) {
    /*color: #333;  中灰色 */
    background: rgba(45, 55, 72, 0.08);
    border-radius: 3px;
    padding: 3px 8px 3px 12px;
}

.update-item::before {
    content: "◔";
    position: absolute;
    left: 0;
    color: #6B7280;
}

.notice-text {
    color: #EF4444;
    font-weight: 500;
    text-align: center;
    margin-bottom: 1rem;
    padding: 0.5rem;
    border: 1px solid #FCA5A5;
    border-radius: 0.5rem;
    background-color: #FEF2F2;
}

@media (min-width: 640px) {
    .subscription-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 引流网页基础样式 */
.app {
    --hover-color: #37a272;
    --bg-color: #f6f6f7;
    --title-color: #3c3c43;
    --text-color: #65656a;

}

/* 通用容器样式 */
.app .container {
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    /* 或者其他数值 */
    padding: 0 0 10px;
}

.app .wrap {
    background: var(--bg-color);
    border-radius: 12px;
    padding: 24px;
    transition: box-shadow 0.15s;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 悬停效果 */
.app .container:hover .wrap {
    box-shadow: 0 0 0 1px inset var(--hover-color);
}

/* 内容布局 */
.app img {
    width: 40px;
    height: 40px;
    margin-right: 12px;
    border-radius: 8px;
}

.app .title {
    color: var(--title-color);
    font-size: 17px;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

.app .info {
    color: var(--text-color);
    font-size: 13px;
    line-height: 1.5;
    opacity: 0.9;
}

/* 响应式布局 */
@media (min-width: 640px) {
    .app .wrap {
        flex-direction: row;
        align-items: center;
        gap: 24px;
    }

    .app img {
        width: 48px;
        height: 48px;
        border-radius: 8px;
    }
}

@media (min-width: 960px) {
    .app {
        max-width: 1300px;
        margin: 0 10px;
    }

    .app .wrap {
        padding: 28px 32px;
    }
}

/*页脚*/
.footer.ch {
    border-top: 1px solid #f0f0f0;
    padding: 1rem 0;
    font-family: system-ui, -apple-system, sans-serif;
}

.footer .container {
    max-width: 1800px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0.5rem;
    flex-wrap: wrap;
}

.footer h4 {
    color: #666;
    font-size: 0.85rem;
    font-weight: 400;
    margin: 0;
}

.footer a {
    color: #444;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.footer a:hover {
    color: #000;
    text-decoration: underline;
}

.footer mark {
    background: transparent;
    color: #6fa8dc;
    font-weight: 500;
    padding: 0;
    position: relative;
}

.footer mark::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, rgba(0, 123, 255, 0.3) 50%, transparent 50%);
    background-size: 4px 2px;
}

/* 访客 浏览量 */
.footer .stats {
    display: flex;
    justify-content: flex-end;
    /* 默认电脑端居右 */
    gap: 3rem;
    flex: 1;
    color: #666;
    font-size: 0.85rem;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .footer .container {
        flex-direction: column;
        gap: 0.6rem;
        padding: 0 1rem;
    }

    .footer h4,
    .footer a {
        font-size: 0.8rem;
    }

    .footer .stats {
        order: 0;
        min-width: auto;
        flex: none;
        color: #6fa8dc;
        gap: 0.8rem;
        justify-content: center;
        /* 手机端居中 */
    }
}


/*复制模块*/
#parsed-section {
    text-align: center;
    /*margin-top: 1px;*/
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

#parsed-url {
    width: 65%;
    padding: 10px;
    max-width: 500px;

}

#copy-btn {
    padding: 10px 20px;
    /*margin-left: 0px;框调到65解决*/
    background: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    font-size: 16px;
}

#copy-btn:hover {
    background: #218838;
}

/* 电脑端适配（屏幕宽度≥768px） */
@media (min-width: 768px) {
    #parsed-url {
        width: 1665px;
        /* 1800px - 130px(按钮+间距) */
        max-width: 1800px;
        /* 移除移动端最大宽度限制 */
    }

    #copy-btn {
        width: 100px;
    }
}

/*输入框*/
#input-section {
    text-align: center;
    scroll-margin-top: 80px;/*输入框聚焦上顶页面*/
    margin-bottom: 20px;
    /* 添加flex布局保证元素同行排列 */
    display: flex;
    justify-content: center;
    align-items: center;
    /* 垂直居中 */
    gap: 10px;
    /* 替代margin-right */
    position: relative;
    /* 为清除按钮定位做准备 */
}

#video-url {
    /*padding: 10px 35px 10px 10px; 右侧留出清除按钮空间 */
    padding: 9px 30px 9px 9px;
    /* 移动端优先设置 */
    width: 65%;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.2);
    font-size: 16px !important;
    /* 关键：强制16px字体 */
    transform: translateZ(0);
    /* 禁用iOS缩放动画 */
}

#parse-btn {
    padding: 10px 20px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    /* 保持按钮不换行 */
    white-space: nowrap;
    font-size: 16px;
}

/* 清除按钮 */
.clear-btn {
    position: absolute;
    right: 120px;
    /* 根据解析按钮宽度调整 */
    top: 45%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 0, 0, 0.5);
    cursor: pointer;
    font-size: 18px;
    padding: 5px;
    display: none;
    /*无输入默认隐藏 */
}

.clear-btn:hover {
    color: #333;
}

/* 当输入框有内容时显示清除按钮 */
#video-url:not(:placeholder-shown)+.clear-btn {
    display: block;
}

/* 电脑端适配（屏幕宽度≥768px） */
@media (min-width: 768px) {
    #video-url {
        width: 1665px;
        /* 1800px - 130px(按钮+间距) */
        max-width: 1800px;
        /* 移除移动端最大宽度限制 */
    }

    #parse-btn {
        width: 100px;
    }

    .clear-btn {
        right: 110px;
        /* 电脑端调整位置 */
    }
}

#parse-btn:hover {
    background: #0056b3;
}

/* 禁用聚焦放大 */
input:focus,
textarea:focus {
    transform: scale(0.999);
    -webkit-transform: scale(0.999);
}

/*输入框*/

/*平台按钮*/
#button-container {
    display: flex;
    flex-wrap: wrap;
    padding: 3px 0 0 0;
    gap: 10px;
    max-width: 1800px;
    margin: 0 auto;
}

.source-btn {
    flex: 0 0 calc(50% - 5px);
    box-sizing: border-box;
    min-width: 150px;
    padding: 1px;
    background: rgba(30, 30, 30, 0.1);
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}



/*.module {
  background-color: rgba(240, 240, 240, 0.85);  白色背景用 

  background-color: rgba(30, 30, 30, 0.8); /* 黑色背景用 
  backdrop-filter: blur(5px); /* 可选：毛玻璃效果 
  border: 1px solid rgba(255, 255, 255, 0.1); /* 浅边框 
  border-radius: 8px; /* 圆角 
}*/
/*#button-container {
    display: flex;
    flex-wrap: wrap;
    padding: 3px 0px 0px 0px; 
    gap: 10px;
    max-width: 1800px;
    margin: 0 auto;
}

.source-btn {
    flex: 1 1 40%;
    min-width: 150px;
    padding: 1px;
    background: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}*/
/* 逐字打印绿色文本样式 */
.textt .dynamic-text.success {
    color: #28a745;
}

/*夜晚效果
body {
    margin: 0;
    padding: 20px;
    font-family: Arial, sans-serif;
    transition: background-color 1s ease;
}*/

#galaxy-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0;
    transition: opacity 2s ease;
    background: radial-gradient(ellipse at bottom, #1B2735 0%, #090A0F 100%);
    overflow: hidden;
}

.content {
    padding: 20px;
    color: #333;
    text-align: center;
}

.night-mode .content {
    color: #fff;
}

/* 星星样式 */
.star {
    position: absolute;
    background-color: #fff;
    border-radius: 50%;
    animation: twinkle var(--duration) infinite ease-in-out;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.2;
    }

    50% {
        opacity: 1;
    }
}

/* 新增夜间模式文本颜色 
body {
    margin: 0;
    padding: 20px;
    font-family: Arial, sans-serif;
    color: #333;
}*/

.night-mode {
    background-color: #1B2735;
    color: #fff;
    /* 夜间模式文本颜色 */
}

/* 确保所有文本元素继承夜间模式颜色 */
.night-mode * {
    color: inherit;
}

/* 特别处理动态文本颜色 */
.night-mode .dynamic-text {
    color: #4da6ff;
    /* 夜间模式下更亮的蓝色 */
}

.night-mode .dynamic-text.success {
    color: #5cb85c;
    /* 夜间模式下更亮的绿色 */
}

/* 处理页脚链接颜色 */
.night-mode .footer a {
    color: #bbbbbb;
}

.night-mode .footer a:hover {
    color: #ffffff;
}

/* 处理模态框文本 */
.night-mode .modal-content {
    --card-color: #2d374880;
    /* 夜间模式卡片背景 */
    color: #E6DBDB;
}

/* 处理更新项颜色 */
.night-mode .update-item::before {
    color: #a0aec0;
}

/* 处理通知文本 */
.night-mode .notice-text {
    color: #ff6b6b;
    border-color: #ff6b6b;
    background-color: #2d0000;
}

/* 自写网页夜间模式 - 引流模块适配 */
.night-mode .app {
    --hover-color: #37a27299;
    /* 半透明悬停色 */
    --bg-color: rgba(45, 55, 72, 0.5);
    /* 深蓝灰背景 */
    --title-color: #e2e8f0;
    /* 浅灰标题 */
    --text-color: #a0aec0;
    /* 中灰文本 */
}

/* 增强夜间模式对比度 */
.night-mode .app .wrap {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    /* 添加阴影提升层次感 */
}

/* 适配深色模式图片显示 
.night-mode .app img {
  filter: brightness(0.9);
  mix-blend-mode: luminosity;
}*/

/* 响应式调整 */
@media (min-width: 640px) {
    .night-mode .app .wrap {
        border: 1px solid #374151;
        /* 添加分割线 */
    }
}


/* 功能组件保护（防止继承夜间模式颜色） */
.night-mode #video-url,
.night-mode #parsed-url {
    background-color: rgba(255, 255, 255, 0.8) !important;
    color: #333 !important;
}

.night-mode .clear-btn {
    color: rgba(255, 0, 0, 0.5) !important;
}

.night-mode .update-item:nth-child(even) {
    background: rgba(255, 255, 255, 0.1);
}

/* 新增折叠相关样式 */
.collapsible {
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* 自定义折叠图标 */
summary.update-date {
    list-style: none;
    cursor: pointer;
    position: relative;
    padding-left: 1.5rem;
}
summary.update-date::-webkit-details-marker {
    display: none;
}
summary.update-date::before {
    content: '▶';
    position: absolute;
    left: 0;
    transition: transform 0.2s;
    color: var(--primary-color);
}
details[open] summary.update-date::before {
    transform: rotate(90deg);
}

/* 折叠内容默认隐藏 */
.collapsible > .update-item {
    display: none;
    margin-left: 1.5rem;
}
details[open] > .update-item {
    display: block;
}